package com.example.videopractice

import android.content.Intent
import android.os.Bundle
import com.example.base.base.BaseBindingActivity
import com.example.videopractice.aduiorecord.AudioRecordActivity
import com.example.videopractice.audiotrack.AudioTrackActivity
import com.example.videopractice.camera.CameraActivity
import com.example.videopractice.databinding.ActivityMainBinding
import com.example.videopractice.media.MediaActivity
import com.example.videopractice.mediaex.CameraXVideoExActivity
import com.example.videopractice.mediaex.VideoExActivity
import com.example.videopractice.opengl.OpenGLES20Activity


class MainActivity : BaseBindingActivity<ActivityMainBinding>() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        binding.btnAudioRecord.setOnClickListener {
            startActivity(Intent(this, AudioRecordActivity::class.java))
        }
        binding.btnAudioTrack.setOnClickListener {
            startActivity(Intent(this, AudioTrackActivity::class.java))
        }
        binding.btnCamera.setOnClickListener {
            startActivity(Intent(this, CameraActivity::class.java))
        }
        binding.btnMedia.setOnClickListener {
            startActivity(Intent(this, MediaActivity::class.java))
        }
        binding.btnMediaEx.setOnClickListener {
            startActivity(Intent(this, VideoExActivity::class.java))
        }
        binding.btnMediaEx2.setOnClickListener {
            startActivity(Intent(this,CameraXVideoExActivity::class.java))
        }
        binding.btnOpenGL.setOnClickListener {
            startActivity(Intent(this, OpenGLES20Activity::class.java))
        }
    }

}